package flywight;

public class Client {

    public static void main(String[] args) {
        AbstractBox i = BOXFactory.createBOXFactory().getBOX("I");
        i.display("灰色");
        System.out.println(i.getShape());

        AbstractBox l = BOXFactory.createBOXFactory().getBOX("L");
        l.display("白色");
        System.out.println(l.getShape());

        AbstractBox o = BOXFactory.createBOXFactory().getBOX("O");
        o.display("猛男粉");
        System.out.println(o.getShape());
    }
}
